import React, {ReactNode} from "react";
import {AuthProvider} from "./auth-context";
import {QueryClient, QueryClientProvider} from 'react-query'

export const AppProviders = ({children}: {children: ReactNode}) => {
    return (
        <QueryClientProvider client={new QueryClient()}>
            <AuthProvider>
                {children}
            </AuthProvider>
        </QueryClientProvider>
    )
}



// import React, { ReactNode } from "react";
// import { AuthProvider } from "context/auth-context";
// import { QueryClient, QueryClientProvider } from "react-query";
// import { BrowserRouter as Router } from "react-router-dom";
//
// export const AppProviders = ({ children }: { children: ReactNode }) => {
//   const queryClient = new QueryClient();
//
//   return (
//     <QueryClientProvider client={queryClient}>
//       <Router>
//         <AuthProvider>{children}</AuthProvider>
//       </Router>
//     </QueryClientProvider>
//   );
// };
